package com.wyg.epuser.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 后台权限表
 * </p>
 *
 * @author WangYongGan
 * @since 2022-05-18
 */
@TableName("sys_permission")
@ApiModel(value = "SysPermission对象", description = "后台权限表")
public class SysPermission implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("自定id,主要供前端展示权限列表分类排序使用.")
    private Integer id;

    @ApiModelProperty("归属菜单,前端判断并展示菜单使用,")
    private String menuCode;

    @ApiModelProperty("菜单的中文释义")
    private String menuName;

    @ApiModelProperty("权限的代码/通配符,对应代码中@RequiresPermissions 的value")
    private String permissionCode;

    @ApiModelProperty("本权限的中文释义")
    private String permissionName;

    @ApiModelProperty("是否本菜单必选权限, 1.必选 2非必选 通常是\"列表\"权限是必选")
    private Boolean requiredPermission;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMenuCode() {
        return menuCode;
    }

    public void setMenuCode(String menuCode) {
        this.menuCode = menuCode;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getPermissionCode() {
        return permissionCode;
    }

    public void setPermissionCode(String permissionCode) {
        this.permissionCode = permissionCode;
    }

    public String getPermissionName() {
        return permissionName;
    }

    public void setPermissionName(String permissionName) {
        this.permissionName = permissionName;
    }

    public Boolean getRequiredPermission() {
        return requiredPermission;
    }

    public void setRequiredPermission(Boolean requiredPermission) {
        this.requiredPermission = requiredPermission;
    }

    @Override
    public String toString() {
        return "SysPermission{" +
                "id=" + id +
                ", menuCode=" + menuCode +
                ", menuName=" + menuName +
                ", permissionCode=" + permissionCode +
                ", permissionName=" + permissionName +
                ", requiredPermission=" + requiredPermission +
                "}";
    }
}
